package com.zengqingfa.designpattern.behavior.observer.spring;

import org.springframework.context.ApplicationEvent;

/**
 *
 * @fileName: Notice
 * @author: zengqf3
 * @date: 2021-4-23 16:04
 * @description:
 *  * ApplicationContext：事件源，其中的 publishEvent()方法用于触发容器事件
 *  * ApplicationEvent：事件本身，自定义事件需要继承该类，可以用来传递数据
 *  *
 */
public class Notice extends ApplicationEvent {
    /**
     * Create a new {@code ApplicationEvent}.
     * @param source the object on which the event initially occurred or with
     * which the event is associated (never {@code null})
     */
    public Notice(Object source) {
        super(source);
    }
}
